<?php
include "lib/classes.php"; 

$tabela = "categoria_n2";
$string = "&";

$sql = mysql_query("select * from $tabela WHERE titulo LIKE '%$string%' ");

while($row = mysql_fetch_object($sql)){ 
$row->titulo = str_replace("&","e",$row->titulo);

$sqlupdate = mysql_query("update $tabela SET titulo = '".$row->titulo." WHERE id= '".$row->id."' '");



?>

<li><?php if($sqlupdate ==true){ echo "OK->";}else{ echo "NO->"; } $row->titulo?></li>

<? } ?>